package com.rbac.web.model.req;

import com.rbac.web.model.PageV0;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author gengaoliu
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBase {
  private Integer page = 1;
  private Integer size = 15;

  public PageV0 toPageV0() {
    return PageV0.builder().page(this.getPage()).size(this.getSize()).build();
  }
}
